﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x02000347 RID: 839
	public class TSampleClause : TParseTreeNode
	{
		// Token: 0x17000708 RID: 1800
		// (get) Token: 0x06002251 RID: 8785 RVA: 0x00335110 File Offset: 0x00333310
		// (set) Token: 0x06002252 RID: 8786 RVA: 0x00335118 File Offset: 0x00333318
		public virtual TWhenClauseItemList WhenClauseItems
		{
			get
			{
				return this.whenClauseItems;
			}
			set
			{
				this.whenClauseItems = value;
			}
		}

		// Token: 0x17000709 RID: 1801
		// (get) Token: 0x06002253 RID: 8787 RVA: 0x00335121 File Offset: 0x00333321
		// (set) Token: 0x06002254 RID: 8788 RVA: 0x00335129 File Offset: 0x00333329
		public virtual TConstantList Count_fraction_description_list
		{
			get
			{
				return this.count_fraction_description_list;
			}
			set
			{
				this.count_fraction_description_list = value;
			}
		}

		// Token: 0x06002255 RID: 8789 RVA: 0x00335132 File Offset: 0x00333332
		private void handlesample_clause_condition()
		{
			this.whenClauseItems = (TWhenClauseItemList)this.sample_clause_condition.list1;
			this.count_fraction_description_list = (TConstantList)this.sample_clause_condition.list2;
		}

		// Token: 0x06002256 RID: 8790 RVA: 0x00335160 File Offset: 0x00333360
		public override void init(object arg1)
		{
			if (arg1 is TConstantList)
			{
				this.count_fraction_description_list = (TConstantList)arg1;
				return;
			}
			if (arg1 is TDummy)
			{
				this.sample_clause_condition = (TDummy)arg1;
				this.handlesample_clause_condition();
			}
		}

		// Token: 0x06002257 RID: 8791 RVA: 0x00335191 File Offset: 0x00333391
		public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
		{
			if (this.whenClauseItems != null)
			{
				this.whenClauseItems.doParse(psql, plocation);
			}
		}

		// Token: 0x04001AE4 RID: 6884
		private TDummy sample_clause_condition;

		// Token: 0x04001AE5 RID: 6885
		private TConstantList count_fraction_description_list;

		// Token: 0x04001AE6 RID: 6886
		private TWhenClauseItemList whenClauseItems;
	}
}
